package com.chapter10;

/**
 * 模板方法，给出了逻辑的框架，而逻辑的组成是一些相应的抽象操作，他们都推迟到子类实现
 */
public abstract class Paper {
    public void Question1(){
        System.out.println("问题1");
        System.out.println("答案："+ Answer1());
    }
    public void Question2(){
        System.out.println("问题2");
        System.out.println("答案："+ Answer2());
    }
    public void Question3(){
        System.out.println("问题3");
        System.out.println("答案："+ Answer3());
    }

    abstract String Answer1();
    abstract String Answer2();
    abstract String Answer3();

}
